﻿@using EntityModel
@model EntityModel.Category
@{ var list = ViewData["categoryList"] as IEnumerable<Category>;}
<div class="box-sub">
    <div class="hd">
        <h2>
            @if (Model.Id == 1)
            {
                <a href="javacript:void(0)">@Model.Name</a>
            }
            else
            { 
        
                <a href="/category/s/@Model.Id">@Model.Name</a>
            }
        </h2>
    </div>
    <div class="bd">
        <ul class="submenu">
            @foreach (Category category in list)
            {

                if ((int)@ViewData["cId"] == @category.Id)
                {
                <li><a title="@category.Name" href="/category/s/@category.Id" class="cur"><span>@category.Name
                    (306)</span></a> </li>
                }
                else
                { 
                <li><a title="@category.Name" href="/category/s/@category.Id" ><span>@category.Name
                    (306)</span></a> </li>
        
                }
            }
        </ul>
    </div>
</div>
